import Vue 					from 'vue'
import Router 				from 'vue-router'
import WebIndex 			from '@/components/web/WebIndex'
import CenterIndex 			from '@/components/web/index/CenterIndex';
import CenterAbout 			from '@/components/web/about/CenterAbout';
import CenterBusiness 		from '@/components/web/business/CenterBusiness';
import CenterNews 			from '@/components/web/news/CenterNews';
import CenterNewsInfo 		from '@/components/web/news/CenterNewsInfo';
import CenterHuman 			from '@/components/web/human/CenterHuman';
import CenterCoutact 		from '@/components/web/coutact/CenterCoutact';

Vue.use(Router)

export default new Router({
	mode: 'history',
  routes: [
    {
      path: '/',
      component: WebIndex,
      children: [
        {
          path: '',
          component: CenterIndex
        },
        {
          path: 'about',
          component: CenterAbout
        },
        {
          path: 'about/:id',
          component: CenterAbout
        },
        {
          path: 'business',
          component: CenterBusiness
        },
        {
          path: 'business/:id',
          component: CenterBusiness
        },
        {
          path: 'news',
          component: CenterNews
        },
        {
          path: 'news/:id',
          component: CenterNews
        },
        {
          path: 'newsinfo/:id',
          component: CenterNewsInfo
        },
        {
          path: 'human',
          component: CenterHuman
        },
        {
          path: 'human/:id',
          component: CenterHuman
        },
        {
          path: 'coutact',
          component: CenterCoutact
        },
        {
          path: 'coutact/:id',
          component: CenterCoutact
        }
      ]
    }
  ]
})
